home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / APW.ORCA.Cmds / Matts.Utils / UTILITIES / HELP / MODIFIERS < prev   
Encoding:
Text File  |  1990-04-21  |  558 b   |  22 lines  |  [TEXT/pdos]

  1. MODIFIERS [no parameters]
  2. by Matt Deatherage
  3.  
  4. Modifiers reads the "modifiers" register (KEYMODREG, $C025) and updates
  5. several shell variables based on that register.
  6.  
  7. The affected variable values are:
  8.  
  9. {OpenApple}, {Option}, {UpdateMod}, {Keypad}, {Repeat}, {CapsLock},
  10. {Control} and {Shift}.
  11.  
  12. Each variable is set to "0" if the corresponding bit in the modifiers
  13. register is not set, or set to "1" if the bit is set.  Every variable is
  14. reset every time MODIFIERS is executed.
  15.  
  16. Script example:
  17.  
  18. modifiers
  19. if {CapsLock} == "1"
  20.    echo "Caps Lock is down"
  21. end
  22.